package com.boot.main.mapper;

import com.boot.main.entity.CcomRolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CcomRolePermissionMapper {
    String getPermissionByRoleId(Long role_id);
    Integer saveRolePermission(CcomRolePermission rolePermission);
    Integer updateRolePermission(CcomRolePermission rolePermission);
    String[] getPermissionByRoleIds(@Param("roleIds") String[] roleIds);
}
